package com.sakiko.home3.controller;

import com.sakiko.home3.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.sql.SQLException;

// 组件管理配置方式之 注解 + 配置类
@Controller // id studentController
public class StudentController {

    @Autowired
    private StudentService studentService;

    public void showAll() throws SQLException {
        studentService.findList();
    }
}
